
class A:
    a = 1
    b = 2


aa = A()

print(getattr(A,"a"))
print(getattr(aa,"a"))